home *** CD-ROM | disk | FTP | other *** search
/ CDUTIL 13 / CDUTIL #13 Julio 1995.iso / windows / amipro3 / macros.cmz / SMARTPIC.SMM < prev    next >
Encoding:
INI File  |  1992-11-18  |  5.2 KB  |  387 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     _macro.sty
  5. [files]
  6. [charset]
  7.     82
  8.     ANSI (Windows, IBM CP 1252)
  9. [revisions]
  10.     0
  11. [prn]
  12.     PostScript Printer
  13. [port]
  14.     LPT2:
  15. [lang]
  16.     1
  17. [desc]
  18.     Acceso directo a SmartPics Sampler de Lotus. Asigne el icono personalizado correspondiente para acceder directamente.
  19.     Lotus WPD Marketing
  20.     Beginner
  21.     Exec, AppMinimize
  22.     
  23.     714877633
  24.     10
  25.     681240805
  26.     14
  27.     2
  28.     0
  29.     0
  30.     0
  31.     0
  32.     
  33.     
  34.     
  35.     
  36.     
  37.     
  38.     0
  39. [fopts]
  40.     0
  41.     1
  42.     0
  43.     0
  44. [lnopts]
  45.     2
  46.     Body Text
  47.     1
  48. [docopts]
  49.     5
  50.     2
  51. [GramStyle]
  52.     
  53. [tag]
  54.     Est<\a>ndar
  55.     5
  56.     [fnt]
  57.         Tms Rmn
  58.         240
  59.         0
  60.         49152
  61.     [algn]
  62.         1
  63.         1
  64.         0
  65.         0
  66.         0
  67.     [spc]
  68.         17
  69.         0
  70.         1
  71.         0
  72.         0
  73.         1
  74.         100
  75.     [brk]
  76.         4
  77.     [line]
  78.         8
  79.         0
  80.         1
  81.         0
  82.         1
  83.         1
  84.         1
  85.         10
  86.         10
  87.         1
  88.     [spec]
  89.         0
  90.         0
  91.         
  92.         0
  93.         1
  94.         1
  95.         0
  96.         0
  97.         0
  98.         0
  99.     [nfmt]
  100.         24
  101.         1
  102.         2
  103.         ,
  104.         .
  105.         Pts
  106.     Est<\a>ndar
  107.     0
  108.     0
  109. [l1]
  110.     0
  111. [pg]
  112.     2
  113.     49 0 12 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  114.     73 0 0 1025 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  115. [edoc]
  116. <:#293,9025>Macro by <+!>Charlie Pappas<-!>
  117.  
  118. <:#293,9025>Editted by <+!>Mike Jones<-!>
  119.  
  120. <:#279,9025>
  121.  
  122. <:#279,9025>function execsuite()
  123.  
  124. <:#279,9025>app = "smartpic.exe"
  125.  
  126. <:#279,9025>appname = "SmartPics Sampler"
  127.  
  128. <:#279,9025>defdir = "c:\smartpic"
  129.  
  130. <:#279,9025>ignorekeyboard(1)
  131.  
  132. <:#279,9025>declare missouri(xapp)
  133.  
  134. <:#279,9025>declare getprofile(xappname)
  135.  
  136. <:#279,9025>declare writeprofile(path, xappname)
  137.  
  138. <:#279,9025>declare tryit(path, xapp)
  139.  
  140. <:#279,9025>defstr path;
  141.  
  142. <:#279,9025>
  143.  
  144. <:#279,9025>if appisrunning(appname)
  145.  
  146. <:#279,9025>    activateapp(appname)
  147.  
  148. <:#279,9025>    apprestore(appname)
  149.  
  150. <:#279,9025>    return 1
  151.  
  152. <:#279,9025>endif
  153.  
  154. <:#279,9025>if 0 = doschdir(defdir)
  155.  
  156. <:#279,9025>    if tryit("", app) <;> 31
  157.  
  158. <:#279,9025>        return 1
  159.  
  160. <:#279,9025>    endif
  161.  
  162. <:#279,9025>endif
  163.  
  164. <:#279,9025>if tryit(getprofile(appname), app) <;> 31
  165.  
  166. <:#279,9025>    return 1
  167.  
  168. <:#279,9025>endif
  169.  
  170. <:#279,9025>again:
  171.  
  172. <:#279,9025>if assign(&path, missouri(app)) <<<;> 0
  173.  
  174. <:#279,9025>    if tryit(path, app) <;> 31
  175.  
  176. <:#279,9025>        writeprofile(path, appname)
  177.  
  178. <:#279,9025>    else
  179.  
  180. <:#279,9025>        goto again
  181.  
  182. <:#279,9025>    endif
  183.  
  184. <:#279,9025>endif
  185.  
  186. <:#279,9025>end function
  187.  
  188. <:#279,9025>
  189.  
  190. <:#279,9025>function tryit(path, app)
  191.  
  192. <:#279,9025>doschdir(path)
  193.  
  194. <:#279,9025>return exec(strcat$(path, app), "")
  195.  
  196. <:#279,9025>end function
  197.  
  198. <:#279,9025>
  199.  
  200. <:#279,9025>function writeprofile(path, appname)
  201.  
  202. <:#279,9025>writeprofilestring("LotusApps", appname, path, "amipro.ini")
  203.  
  204. <:#279,9025>end function
  205.  
  206. <:#279,9025>
  207.  
  208. <:#279,9025>function getprofile(appname)
  209.  
  210. <:#279,9025>return getprofilestring$("LotusApps", appname, "amipro.ini")
  211.  
  212. <:#279,9025>end function
  213.  
  214. <:#279,9025>
  215.  
  216. <:#279,9025>function missouri(app)
  217.  
  218. <:#279,9025>defstr box;
  219.  
  220. <:#279,9025>filledit(9001, "*.exe")
  221.  
  222. <:#279,9025>filledit(8007, app)
  223.  
  224. <:#279,9025>if assign(&box, dialogbox(".", "findapp")) <<<;> 1
  225.  
  226. <:#279,9025>    return 0
  227.  
  228. <:#279,9025>endif
  229.  
  230. <:#279,9025>return getcurrentdir$()
  231.  
  232. <:#279,9025>end function
  233.  
  234. <:#279,9025>
  235.  
  236. <:#279,9025>
  237.  
  238. <:#279,9025>DIALOG findapp
  239.  
  240. -2134376448 7 70 35 200 97 "" "" "B<\z>squeda de la aplicaci<\s>n"
  241.  
  242. <:#279,9025>FONT 8 "Helv"
  243.  
  244. 7 34 59 8 1000 1342177280 "static" "&V<\m>a de acceso:" 0 
  245.  
  246. <:#279,9025>6 45 60 44 9001 1352728579 "listbox" "" 0 
  247.  
  248. 155 5 40 14 1 1342373889 "button" "Aceptar" 0 
  249.  
  250. 155 21 40 14 2 1342373888 "button" "Cancelar" 0 
  251.  
  252. <:#279,9025>68 34 80 8 7999 1342177280 "static" "" 0 
  253.  
  254. 7 6 142 9 1006 1342177280 "static" "Seleccione el directorio donde se halla" 0 
  255.  
  256. <:#279,9025>7 16 107 8 8007 1342177280 "static" "" 0 
  257.  
  258. <:#279,9025>END DIALOG
  259.  
  260. <:#279,9025>
  261.  
  262. >
  263.  
  264. [Embedded]
  265. 00003732
  266. >
  267. [macsum] 6
  268. execsuite 0 0 5 3
  269. tryit 534 2 1 37
  270. writeprofile 615 2 1 42
  271. getprofile 688 1 1 46
  272. missouri 764 1 2 50
  273. findapp 921 0 -1 61
  274. [macse]
  275. 14 execsuite
  276. 7 "smartpic.exe"
  277. 8 1
  278. 7 "SmartPics Sampler"
  279. 8 2
  280. 7 "c:\smartpic"
  281. 8 3
  282. 0 32 1
  283. 0 1032 "{2}"
  284. 13
  285. 11 00000164
  286. 0 38 "{2}"
  287. 0 1031 "{2}"
  288. 5 1
  289. 15
  290. 9
  291. 5 0
  292. 0 781 "{3}"
  293. 13
  294. 18 0
  295. 11 00000265
  296. 16 tryit "" "{1}"
  297. 13
  298. 5 31
  299. 18 3
  300. 11 00000265
  301. 5 1
  302. 15
  303. 9
  304. 16 getprofile "{2}"
  305. 13
  306. 16 tryit [X] "{1}"
  307. 13
  308. 5 31
  309. 18 3
  310. 11 00000351
  311. 5 1
  312. 15
  313. 9
  314. 16 missouri "{1}"
  315. 13
  316. 0 805 &4 [X]
  317. 13
  318. 5 0
  319. 18 1
  320. 11 00000522
  321. 16 tryit "{4}" "{1}"
  322. 13
  323. 5 31
  324. 18 3
  325. 11 00000509
  326. 16 writeprofile "{4}" "{2}"
  327. 10 00000522
  328. 10 00000351
  329. 6 0
  330. 15
  331. 9
  332. 14 tryit
  333. 0 781 "{0}"
  334. 0 16 "{0}" "{1}"
  335. 13
  336. 0 22 [X] ""
  337. 13
  338. 15
  339. 9
  340. 6 2
  341. 15
  342. 9
  343. 14 writeprofile
  344. 0 287 "LotusApps" "{1}" "{0}" "amipro.ini"
  345. 6 2
  346. 15
  347. 9
  348. 14 getprofile
  349. 0 286 "LotusApps" "{0}" "amipro.ini"
  350. 13
  351. 15
  352. 9
  353. 6 1
  354. 15
  355. 9
  356. 14 missouri
  357. 0 31 9001 "*.exe"
  358. 0 31 8007 "{0}"
  359. 0 26 "." "findapp"
  360. 13
  361. 0 805 &2 [X]
  362. 13
  363. 5 1
  364. 18 1
  365. 11 00000127
  366. 5 0
  367. 15
  368. 9
  369. 0 290
  370. 13
  371. 15
  372. 9
  373. 6 1
  374. 15
  375. 9
  376. DIALOG findapp
  377. -2134376448 7 70 35 200 97 "" "" "B·squeda de la aplicaci≤n" 
  378. FONT 8 "Helv" 
  379. 7 34 59 8 1000 1342177280 "static" "&Vφa de acceso:" 0 
  380. 6 45 60 44 9001 1352728579 "listbox" "" 0 
  381. 155 5 40 14 1 1342373889 "button" "Aceptar" 0 
  382. 155 21 40 14 2 1342373888 "button" "Cancelar" 0 
  383. 68 34 80 8 7999 1342177280 "static" "" 0 
  384. 7 6 142 9 1006 1342177280 "static" "Seleccione el directorio donde se halla" 0 
  385. 7 16 107 8 8007 1342177280 "static" "" 0 
  386. 00003757
  387.